<template>
  <div class="box">
    <van-image
      width="100%"
      height="100%"
      src="https://img01.yzcdn.cn/vant/cat.jpeg"
    />
    <div class="touxiang">
      <div class="a">
        <div class="b"></div>
        <img src="https://img01.yzcdn.cn/vant/cat.jpeg" alt="" />
      </div>
      <p>游客</p>
      <div class="denglu" @click="$router.push('/login')">去登录</div>
    </div>

    <van-grid :column-num="3" class="fenlei" >
      <van-grid-item
        icon="star-o"
        text="我的收藏"
        @click="like"
      />

      <van-grid-item
        icon="wap-home-o"
        text="我的出租"
      />

      <van-grid-item
        icon="clock-o"
        text="看房记录"
      />

      <van-grid-item
        icon="debit-pay"
        text="成为房主"
      />

      <van-grid-item
        icon="contact"
        text="个人资料"
      />

      <van-grid-item
        icon="service-o"
        text="联系我们"
      />
    </van-grid>

    <div class="tupian"><img src="@/assets/join.png" alt=""></div>
  </div>
</template>

<script>
export default {
  name: 'detail-page',
  data () {
    return {}
  },
  async created () {},
  methods: {
    like(){
      this.$router.push('/shouchang')
    }
  }
}
</script>

<style lang="less" scoped>
.box {
  position: relative;
  .touxiang {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 140px;
    width: 88%;
    height: 180px;
    left: 22px;
    .a {
      position: relative;
      img {
        margin-left: 135px;
        position: absolute;
        top: -32px;
        width: 65px;
        height: 65px;
        border-radius: 50%;
      }
    }
    .b {
      margin-left: 130px;
      position: absolute;
      top: -37px;
      background-color: #fff;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
      width: 75px;
      height: 75px;
      border-radius: 50%;
    }
    p {
      margin-top: 55px;
      text-align: center;
    }
    .denglu {
      background-color: #21b97a;
      width: 66px;
      height: 34px;
      line-height: 34px;
      text-align: center;
      color: #fff;
      border-radius: 5px;

      margin: 15px auto;
    }
  }
  .fenlei {
    margin-top: 70px;
  }
  .tupian {
    img {
      width: 93%;
      height: 75px;
      margin-top: 6px;
      margin-left: 12px;
    }
  }
}
</style>
